package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.uchiha.nova.core.tool.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户角色关联表 
 * </p>
 *
 * @author 周林静
 * @since 2021-04-30
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("nova_user_role")
public class UserRoleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 角色
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;


}
